<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en">
	<head>
		<title>My Facelets Page</title>
		<meta http-equiv="keywords" content="enter,your,keywords,here" />
		<meta http-equiv="description"
			content="A short description of this page." />
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />

		<!--<link rel="stylesheet" type="text/css" href="styles.css">-->
	</head>
	<body>
		<p>
			<ui:insert name="body"><h1 align="center">选择标签学习</h1>
			<h:form>
			
			同意：<h:selectBooleanCheckbox value="#{select.aggree}"></h:selectBooleanCheckbox><br/>
			
			性别：<h:selectOneRadio value="#{select.sex}">
					<f:selectItem itemLabel="男" itemValue="man"/>
					<f:selectItem itemLabel="女" itemValue="woman"/>
				</h:selectOneRadio><br/>
			下拉写死：
			<br/>
			<h:selectOneMenu value="#{select.edu}">
				<f:selectItem itemLabel="初中" itemValue="chuzhong"/>
				<f:selectItem itemLabel="高中" itemValue="gaozhong"/>
				<f:selectItem itemLabel="大学" itemValue="daxue"/>
			</h:selectOneMenu>
			<br/>
			下拉数组：
			<h:selectOneMenu value="#{select.color}">
				<f:selectItems value="#{select.colorSelectItems}"/>
			</h:selectOneMenu>
				<br/>
			下拉List：
			<h:selectOneMenu value="#{select.car}">
				<f:selectItems value="#{select.cars}"/>
			</h:selectOneMenu>
			下拉Map：
			<h:selectOneMenu value="#{select.tel}">
				<f:selectItems value="#{select.phoneMap}"/>
			</h:selectOneMenu>
			<h:commandButton value="提交" action="#{select.submit}"></h:commandButton>
			</h:form>
			</ui:insert>
		</p>
	</body>
</html>
